//
//  String+emoji.swift
//  01-表情键盘
//
//  Created by 陈伟 on 15/10/25.
//  Copyright © 2015年 陈伟. All rights reserved.
//

import Foundation

extension String {
    
    var emoji: String {
        
        let scanner = NSScanner(string: (self))
        
        var value: UInt32 = 0
        scanner.scanHexInt(&value)
        
        let chr = Character(UnicodeScalar(value))
        
        return "\(chr)"
    }
}
